/**
 * 
 */
package com.tomagency.cyberlab.client.rpc;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.tomagency.cyberlab.shared.rpc.ServletServicePfade;

import de.gammadata.gwt.modelle.ResultObject;

/**
 * @author gfr
 *
 */

public interface ScannerService extends RemoteService {
	
	
	
	public String getTaopixScannerStatus();
	/**
	 * 
	 * @param start, wenn Start=true wenn stop=false
	 * @return
	 */
	public ResultObject changeSannerRunModus(boolean start);
	
	public ResultObject doImmediateScan();
	
	public static class Util {
		  public static ScannerServiceAsync getInstance() {
			  ScannerServiceAsync instance=(ScannerServiceAsync) GWT.create(ScannerService.class);
			  	ServiceDefTarget target = (ServiceDefTarget) instance;
			  	target.setServiceEntryPoint(ServletServicePfade.ScannerServiceRPC);
			  	return instance;
		  }
		}
}
